package movee.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author movee
 */
@Component
@ConfigurationProperties(prefix = "app")
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class AppProperties {

    private Boolean testEnv = false;
    private String baseCfgDir;
    private String latestCfgDir;
    private Integer cmdRateSecond = 20;
    private List<String> includeStatuses = new ArrayList<>();
    private Map<String, String> vendorCmdMap = new HashMap<>();

    private String rsyncSecretFileName = "conf/rsync-client.secrets";
}
